package com.example.demo.result;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 自定义sql返回值
 * @author WangPeiXi 58528792@163.com
 * @date 2022/5/8 12:17
 * @version V1.0.0
 */
@Mapper
public interface CustomMapper {
    //Object 可根据sql 自定义实体
    @Select(" ${sql} ")
    List<Object> list(@Param("sql") String sql);
}
